import requests
from loguru import logger

from api.login import Login

class User(Login):

    def user_detail(self,user_id):
        data = {
            "method": "get",
            "url": f"https://api.admin.merchant.java.crmeb.net/api/admin/platform/user/detail/{user_id}",
            "headers": {"authori-zation":self._plat_token},
        }
        logger.info("请求参数：{}".format(data))
        res = requests.request(**data)
        logger.info("响应参数：{}".format(res.text))
        return res.json()

    def user_select(self):
        pass

if __name__ == '__main__':
    User().user_detail(4907)